package com.yyi.springcloud.service.impl;


import com.yyi.springcloud.dao.SensorNameMapper;
import com.yyi.springcloud.entities.SensorNameModel;
import com.yyi.springcloud.service.Local_SensorNameService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Local_SensorNameServiceImpl implements Local_SensorNameService {
	@Resource
	private SensorNameMapper sensorNameDao;

	@Override
	public List<SensorNameModel> getAllSensorName() {
		Example example = new Example(SensorNameModel.class);
		Example.Criteria criteria = example.createCriteria();
		criteria.andIsNotNull("name");
		return sensorNameDao.selectByExample(example);
	}
}
